<!--- <cfscript>
	scholarshipGateway = new assets.calgrants.com.gateway.ScholarshipGateway();
	scholarship = scholarshipGateway.get(Scholarship_ID = request.authScholar.scholarshipID);
</cfscript>

<cfoutput>
	<div class="row">
		<div class="banner prepare-banner">
			<div class="banner-text">
				<span class="banner-header">Cash for College</span><br />
				<span class="banner-subheader">Awarding incentive scholarships since 2005</span>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="span12 content">
			<section>
			
				<h3>Performance Based Scholarship Orientation</h3>
				
				<div style="margin-bottom: 20px;">
				
					<p>To help you receive the full value of your Performance Based Scholarship, we require that you attend an orientation session either online or in person.</p>
					
					<cfif scholarship.getOrientation_Completed()>
						<p><strong>You have completed the orientation.</strong></p>
						<p>The orientation video will be here if you would like to review or rewatch it.</p>
					<cfelse>
						<p><strong>You have not completed the orientation.</strong></p>
						<p>Please watch the orientation video below.  It is 27 minutes long and you must watch it in it's entirity in order to fulfill this requirement.</p>
					</cfif>
 
					<!--- <p>If you have not already attended an online or in person session you can meet your requirement by viewing the following orientation. The orientation is 27 minutes long. We ask that you view the entire presentation.</p>  --->
				
					<cfinclude template="/assets/calgrants/ui/forms/scholarOrientation.cfm">
					
				</div>

			</section>
		</div>
	</div>
	<!--- <script src="#request.pathToJQueryTubeplayer#" type="text/javascript"></script>	 --->
</cfoutput>

<!--- <script type="text/javascript">
	<cfoutput>
		var claimID = "#scholarship.getClaim_ID()#";
	</cfoutput>
	var playerDefaults = {
		// Plugin init params
		width: 900, // the width of the player
		height: 700, // the height of the player
		allowFullScreen: false, // true by default, allow user to go full screen
		initialVideo: "sAJUBxIcM34", // the video that is loaded into the player
		start: 9, 
		preferredQuality: "default",// preferred quality: default, small, medium, large, hd720
		showControls: 0, // whether the player should have the controls visible, 0 or 1
		showRelated: 0, // show the related videos when the player ends, 0 or 1 
		autoPlay: false, // whether the player should autoplay the video, 0 or 1
		autoHide: true, 
		theme: "light", // possible options: "dark" or "light"
		color: "red", // possible options: "red" or "white"
		showinfo: false, // if you want the player to include details about the video
		modestbranding: true, // specify to include/exclude the YouTube watermark
		// the location to the swfobject import for the flash player, default to Google's CDN
		wmode: "transparent", // note: transparent maintains z-index, but disables GPU acceleration
		swfobjectURL: "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",
		loadSWFObject: true, // if you include swfobject, set to false
		// HTML5 specific attrs
		iframed: false, // iframed can be: true, false; if true, but not supported, degrades to flash
		// Player Trigger Specific Functionality
		onPlay: function(id){}, // after the play method is called
		onPause: function(){}, // after the pause method is called
		onStop: function(){}, // after the player is stopped
		onSeek: function(time){}, // after the video has been seeked to a defined point
		onMute: function(){}, // after the player is muted
		onUnMute: function(){}, // after the player is unmuted
		// Player State Change Specific Functionality
		onPlayerUnstarted: function(){}, // when the player returns a state of unstarted
		onPlayerEnded: function(){
			logScholarOrientationCompleted();
		}, // when the player returns a state of ended
		onPlayerPlaying: function(){}, //when the player returns a state of playing
		onPlayerPaused: function(){}, // when the player returns a state of paused
		onPlayerBuffering: function(){}, // when the player returns a state of buffering
		onPlayerCued: function(){}, // when the player returns a state of cued
		onQualityChange: function(quality){}, // a function callback for when the quality of a video is determined
		// Error State Specific Functionality
		onErrorNotFound: function(){}, // if a video cant be found
		onErrorNotEmbeddable: function(){}, // if a video isnt embeddable
		onErrorInvalidParameter: function(){} // if we've got an invalid param
	};

	var logScholarOrientationCompleted = function() {
		$.ajax({
			type: "POST",
			url: "/assets/calgrants/com/API.cfc?method=logScholarOrientationCompleted",
			data: {Claim_ID: claimID},
			dataType: "json",
			success: function(data){
				//console.log(data);
				refreshPage();
			},
			error: function(jqXHR, textStatus, errorThrown){
				//console.log(errorThrown);
			}
		});	
	}
	var refreshPage = function() {
		window.location.reload(true);
	}
	$(function() {
		$("#orientationVideoContainer").tubeplayer(playerDefaults);
	});
	
</script> ---> --->